/**
 * 
 */
package com.prueba;

import java.util.Calendar;

/**
 * @author Pamela
 * 
 */
public class Project {

	private Integer id;
	private String name;
	private String descriptor;
	private Calendar initiallDate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescriptor() {
		return descriptor;
	}

	public void setDescriptor(String descriptor) {
		this.descriptor = descriptor;
	}

	public Calendar getInitiallDate() {
		return initiallDate;
	}

	public void setInitiallDate(Calendar initiallDate) {
		this.initiallDate = initiallDate;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "id: " + id + ", name: " + name + ", descriptor: " + descriptor;//super.toString();
	}
	
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		Project project = (Project)obj;
		
		if(project.getId().equals(this.id) && project.getName().equals(this.name) 
				&& project.getDescriptor().equals(this.descriptor)){
			return true;
		}
		else{
			return false;
		}
	}
}
